<%@page import="bean.B01memberDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="m" class="bean.B01memberVO" scope="page"/>
<jsp:setProperty property="*" name="m"/>

	<%
		B01memberDTO dto = new B01memberDTO();
		dto.setVo(m);
		boolean b= dto.login();
		
		if(b){
			session.setAttribute("sessionMid", m.getM_id());
		}else{
		%> <script type="text/javascript">alert("아이디와 비밀번호가 일치하지 않습니다. \n"+"아이디와 비밀번호를 다시 입력해주십시오.");</script>
		<%	
		}
		/* String mid = "kong";
		String pwd = "1234"; */
		
/* 		pageContext.forwards("/04JSP/02company/index.jsp"); */
	%>

</body>
<script type="text/javascript">location.href= "/Web/04JSP/02company/index.jsp";</script>
</html>